const isProd = process.env.NODE_ENV === 'production'
const apiList = [
  '/v1'
]

const target = isProd ? 'http://fuwu.jtyedu.com' : 'http://192.168.2.240:9003'

const getApiProxy = () => {
  let apiProxy = {}
  apiList.forEach(item => {
    apiProxy[item] = {
      target,
      changeOrigin: true
    }
  })
  return apiProxy
}

module.exports = getApiProxy()

